<?php
$sql = "
select 
		Name								AS NAME, 
		convert(varchar(20), crdate, 120)	as CREATE_DATE, 
		user_name(uid)						as DBOWNER 
from 
		sysobjects 
where  
		xtype = 'V' 
		and status > 0 
order by 
		name 
";

return $sql;

?>